from django.conf.urls.defaults import *
from django.views.generic.list_detail import object_list
from django.views.generic.list_detail import object_detail
from models import Pedido
import views

urlpatterns = patterns('',
    (r"^$", views.index),
    (r"^(?P<pedido_id>[0-9]+)/$",  views.alterar),
    (r"^pedidos/$", object_list, {"queryset":Pedido.objects.all()}, "pedido_list"),
    (r"^pedidos/(?P<object_id>[0-9]+)/$", object_detail, {"queryset":Pedido.objects.all()}, "pedido_detail"),
	(r"nova/$", views.nova),
    
)